package com.cdgeekcamp.redas.db.model;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface PositionsUrlRepository extends CrudRepository<PositionsUrl, Integer> {
    Optional<PositionsUrl> findByUrl(String url);
    Iterable<PositionsUrl> findByState(Integer state);
    Page<PositionsUrl> findAll(Pageable pageable);
}
